<?php
class BotonHelper extends AppHelper {
	var $helpers = array('Html');

	function miBoton($imagen_show, $imagen_hide, $action, $alt) {
		if(empty($alt)) $alt = $action;
		$link = $this->Html->link(
		$this->Html->image($imagen_show, array('alt'=>__($alt, true), 'border'=>"0")),
		array('action'=>$action),array('class'=>'show'),null,false
		);
		$img = $this->Html->link(
		$this->Html->image($imagen_hide, array('alt'=>__($alt, true), 'border'=>"0")),
		array('action'=>$action),null,null,false
		);
		return $this->output("<ul id='work'><li>$link<div class='hide'>$img</div></li></ul>");
	}
}
?>